﻿@model PlanificadorDeEventos.Models.Guest
@{
    ViewBag.Title = "Register";
}

    <div class="content-wrapper main-content clear-fix">
    @using (Html.BeginForm("Register", "Evento", FormMethod.Post))
    {
         
        @Html.AntiForgeryToken()
        <font color="red">@ViewBag.message </font>
        @Html.ValidationSummary(true)
         <fieldset>
                               
                <div class="editor-label">
                    @Html.LabelFor(model => model.Nombre)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Nombre)
                    @Html.ValidationMessageFor(model => model.Nombre)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.Email)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Email)
                    @Html.ValidationMessageFor(model => model.Email)
                </div>
                <p>
                    <input type="submit" value="Aceptar"/>
                </p>
         </fieldset>
        
    }
    @Html.ActionLink("Volver", "Details/" + (int)ViewBag.idEvento, null, new { @class = "roundedButton" })
    </div>
